package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 * @author hua
 * @since 2024-03-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_order_door_pick")
public class OrderDoorPickDo extends Model<OrderDoorPickDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("door_no")
    private String doorNo;

    @TableField("track_id")
    private Long trackId;
    /**
     * 备用字段
     */
    @TableField("type")
    private String type;

    /**
     * 状态
     */
    @TableField("status")
    private String status;

    @TableField("track_number")
    private String trackNumber;

    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    @TableField("create_time")
    private Date createTime;

    @TableField("create_by")
    private Long createBy;

    @TableField("update_time")
    private Date updateTime;

    @TableField("update_by")
    private Long updateBy;

    @TableField("receiver_name")
    private String receiverName;

    @TableField("tel_phone")
    private String telPhone;

    @TableField("post_code")
    private String postCode;

    @TableField("area")
    private String area;

    @TableField("address")
    private String address;

    @TableField("tips")
    private String tips;

    @TableField("old_track_number")
    private String oldTrackNumber;

    /**
     * 预约上门时间
     */
    @TableField("book_date")
    private Date bookDate;

    /**
     * 预约上门时间 小时 xx-xx
     */
    @TableField("book_hour")
    private String bookHour;

    @TableField("shop_id")
    private Long shopId;

    @TableField("storage_id")
    private Long storageId;

    @TableField("company_id")
    private Long companyId;

    @TableField("problem_reason")
    private String problemReason;

    @TableField("problem")
    private Integer problem;

    @TableField("ship_price")
    private Double shipPrice;

    @TableField("order_fee")
    private Double orderFee;

    @TableField("old_status")
    private String oldStatus;

    @TableField("length")
    private double length;

    /**
     * 产品宽度
     */
    @TableField("width")
    private double width;

    /**
     * 产品高度
     */
    @TableField("height")
    private double height;

    /**
     * 产品重量
     */
    @TableField("weight")
    private double weight;

    @TableField("price")
    private int price;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
